package cn.tradewin.advisor.persist.mapper;

import java.util.List;
import java.util.Map;

import cn.tradewin.advisor.persist.model.Advcalendar;
import cn.tradewin.advisor.persist.model.CalendarCategory;
import cn.tradewin.advisor.persist.model.CalendarDates;
import cn.tradewin.advisor.persist.model.CodeLabel;

public interface CalendarMapper {
	int addCalendar(Advcalendar calendar);
	Advcalendar getCalendar(String id);
	List<Advcalendar> getCalendars();
	int addCalendarCategory(CalendarCategory category);
	int delCalendarCategory(Byte id);
	List<CodeLabel> getCalendarCategory(String locale);
	List<CalendarDates> getCalendarDates(String calendarId);
	int delCalendarDates(Map<String, Object> param);
	int delCalendarDate(String calendarId, String date);
	List<CalendarCategory> getCalendarAllCategory();
	int insertCalendarDate(CalendarDates date);
}
